package com.medicine.hbp.uitl;

import com.medicine.hbp.ui.CToast;

import android.content.Context;
import android.widget.Toast;

public class ToastUtil {
	public static CToast cToast;

	public static void showLong(Context context, int resId) {
		try {
			Toast.makeText(context, resId, Toast.LENGTH_LONG).show();
		} catch (Exception e) {
		}
	}

	public static void showLong(Context context, String msg) {
		try {
			Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
		} catch (Exception e) {
		}
	}

	public static void showShort(Context context, int resId) {
		try {
			Toast.makeText(context, resId, Toast.LENGTH_SHORT).show();
		} catch (Exception e) {
		}
	}

	public static void showShort(Context context, String msg) {
		try {
			Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
		} catch (Exception e) {
		}
	}

	public static void showShort(Context context, String msg, int time) {
		try {
			cToast = CToast.makeText(context, msg, time);
			cToast.show();
		} catch (Exception e) {
		}
	}
}
